<?php

/**
 * 
 *
 * @version $Id: header_news.inc.php,v 1.6 2004/08/27 21:32:39 phppc Exp $
 * @copyright 2004 
 **/

$where_time = " WHERE (".$this->config["prefix"]."main.time_start <= ".time().") AND (".$this->config["prefix"]."main.time_end >= ".time()." OR ".$this->config["prefix"]."main.time_end = \"0\") ";
$erg = $this->db_abfrage_q("SELECT news_id,n_title,anzahl_coms,time_start FROM ".$this->config["prefix"]."main ".$where_time." AND active=\"1\" ORDER by time_start DESC LIMIT 0,".$this->db_config["h_news"]."");
while($header_news = $this->db_abfrage_fetch($erg)){
	unset($show_points);
	$news_id = $header_news["news_id"];
	$nav_erweiterung = "kat_id=$kat_id&page=$_GET[page]";
	if($h_news_on["$news_id"] == 1) $nav_erweiterung2 = "#nc$news_id";
	else $nav_erweiterung2 = "&nc_action=com&nc_news_id=$news_id";
	$h_news_link = $this->fun_make_link("","$nav_erweiterung$nav_erweiterung2");
	list($h_title) = $this->fun_lim_news($header_news["n_title"],$this->db_config["hnews_begr"],$this->db_config["lim_header"],1);
	list($start_date,$start_time) = $this->fun_tstamp2date($header_news["time_start"]);
	$com_link = $this->fun_make_link("","nc_action=com&nc_news_id=$news_id");
	eval ("\$header_ones .= \$this->tpl_output1(\"".$this->tpl_load("news_header_one")."\");");
} // while
eval ("\$n_tpl[header_news] = \$this->tpl_output1(\"".$this->tpl_load("news_header")."\");");

?>